// miniprogram/pages/Class_manage/index.js
const db=wx.cloud.database({})
const table=db.collection('Course')

Page({

 
  data: {
    "Class":[]
  },

  onShow: function () {
    let that=this
  table.get({
    success:res=>{
      that.setData({
        Class:res.data
      })
    }
  })
  },


  navi_add:function(){
  wx.navigateTo({
    url: '../addClass/addClass',
  })
  },

  navi_leave:function(){
    wx.navigateTo({
      url: '../leaveManage/leaveManage',
    })
    }

})